/* Base Styles */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

/* Header */
.header {
  height: 3rem;
  display: flex;
  align-items: center;
  background-color: #2c3e50;
  color: white;
  padding: 0 1rem;
}

.header .input {
  flex: 1;
  padding: 0.5rem;
  border-radius: 4px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: white;
  text-align: center;
}

.header .checkbox {
  margin-left: 1rem;
}

/* Direct Result Section */
.directResult {
  background-color: #ecf0f1;
  padding: 1rem;
  background-color: rgba(255, 192, 203, 0.307);
}

.directResult .w1 {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.directResult .w1 .word {
  font-size: 2.5rem;
  font-weight: bold;
  font-family: cursive;
  letter-spacing: 0.2rem;
  background-image: -webkit-linear-gradient(
    left,
    #147b96,
    #e6d205 15%,
    #4ef312 30%,
    #ff1158 45%,
    #4ef312 60%,
    #e6d205 75%,
    #147b96
  );
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-background-size: 200% 100%;
  -webkit-animation: maskedAnimation 4s infinite linear;
}
@keyframes maskedAnimation {
  0% {
   background-position: 0 0;
  }
 
  100% {
   background-position: -100% 0;
  }
 }

.directResult .w1 .pronounce {
  font-style: italic;
  color: #7f8c8d;
}

.directResult .w2 {
  display: flex;
  justify-content: space-around;
  margin-top: 0.5rem;
}

.directResult .w2 div {
  text-align: center;
}

.directResult .w2 .ok,
.directResult .w2 .ielst {
  padding: 0.3rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: white;
}

.directResult .w2 .ok:hover {
  background-color: #3498db;
  color: white;
}

.directResult .w2 .ielst {
  background-color: #bdc3c7;
}

.directResult .w2 .ielst.active {
  background-color: #2ecc71;
  color: white;
}

/* Content Section */
.contentTitle {
  display: flex;
  border-bottom: 1px solid #ddd;
  background-color: #ecf0f1;
}

.contentTitle div {
  flex: 1;
  height: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  font-weight: bold;
  color: #2c3e50;
}

.content {
  display: flex;
  min-height: calc(100% - 10rem);
  padding: 1rem;
  gap: 1rem;
}

.content .type {
  flex: 1;
  min-width: 250px;
  max-width: 50%;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  box-sizing: border-box;
}

/* Word Item Style */
.w {
  margin: 0.5rem 0;
  padding: 0.8rem;
  border-radius: 6px;
  background-color: #f9f9f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.w:hover {
  background-color: #f1f1f1;
}

.w .word {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2c3e50;
}

.w .pronounce {
  font-style: italic;
  color: #7f8c8d;
}

.w .trans {
  color: #555;
}

.w .btn,
.w .ok,
.w .ielst {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.w .btn {
  background-color: #bdc3c7;
  color: #fff;
}

.w .btn:hover {
  background-color: #95a5a6;
}

.w .ok {
  background-color: #2ecc71;
  color: white;
}

.w .ok:hover {
  background-color: #27ae60;
}

.w .ielst {
  background-color: #f1c40f;
  color: #fff;
}

.w .ielst:hover {
  background-color: #f39c12;
}
